package com.bootdo.system.dao;

import com.bootdo.system.domain.ScoreLogDO;

import java.util.List;
import java.util.Map;

import com.bootdo.system.vo.ScoreLogVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 扣分记录
 *
 * @author zhouxm
 * @date 2021-01-15 10:32:59
 */
@Mapper
public interface ScoreLogDao {
    /**
     * 根据主键获取扣分详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    ScoreLogVO get(String id) throws Exception;

    /**
     * 获取扣分列表
     *
     * @param map
     * @return
     * @throws Exception
     */
    List<ScoreLogVO> list(Map<String, Object> map) throws Exception;

    /**
     * 获取扣分列表数量
     *
     * @param map
     * @return
     * @throws Exception
     */
    int count(Map<String, Object> map) throws Exception;

    /**
     * 保存
     *
     * @param log
     * @return
     * @throws Exception
     */
    int save(ScoreLogDO log) throws Exception;

    /**
     * 更新
     *
     * @param log
     * @return
     * @throws Exception
     */
    int update(ScoreLogDO log) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    int remove(String id) throws Exception;

    /**
     * 批量删除
     *
     * @param ids
     * @return
     * @throws Exception
     */
    int batchRemove(String[] ids) throws Exception;

    int getScore(Map<String, Object> map);
}
